Spread for ASP.NET 10 Product Documentation
ComboBoxCellType Constructor(String[])
Example 


Items for the list specified in a string array
Creates a new combo box cell with the specified items in the combo box list.
Syntax
'Declaration
 
Public Function New( _
   ByVal items() As String _
)
'Usage
 
Dim items() As String
 
Dim instance As New ComboBoxCellType(items)
public ComboBoxCellType( 
   string[] items
)

Parameters

items
Items for the list specified in a string array
Example
This example creates a ComboBoxCellType object and makes all the cells in the first column combo boxes.
string[] cbstr; 
cbstr = new String[] {"One", "Two", "Three"};
FarPoint.Web.Spread.ComboBoxCellType cb = new FarPoint.Web.Spread.ComboBoxCellType(cbstr);
FpSpread1.ActiveSheetView.Columns[0].CellType = cb;
Dim cbstr As String()
cbstr = New String() {"One", "Two", "Three"}
Dim cb As New FarPoint.Web.Spread.ComboBoxCellType(cbstr)
FpSpread1.ActiveSheetView.Columns(0).CellType = cb
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

ComboBoxCellType Class
ComboBoxCellType Members
Overload List
Items Property

 

 


Copyright © GrapeCity, inc. All rights reserved.